# -*- coding: utf-8 -*-
import os

print "请输入运行场景:<1>本地调试;<2>服务器部署;"
i= input()
if i==1:
    with open("../html/js/host.js","w+") as f:
        f.write("""var localhost = "http://127.0.0.1:8000";""")
elif i==2:
    with open("../html/js/host.js","w+") as f:
        f.write("""var localhost = "http://172.16.18.131:8000";""")
else:
    print "你不是在逗我吧"